<?php

namespace app\api\model;
use think\Model;
use think\Config;

class UserInfo extends Model
{
    protected $table = 'jk_user_informations';

    //友好显示时间
    public function getCreateAtAttr($value)
    {
        $res = friendlyDate($value);

        return $res;
    }

    //审核状态
    public function getStatusAttr($value)
    {
        $status = [
            '1'=>'认证',
            '2'=>'未认证',
            '3'=>'审核中',
            '4'=>'未认证',
        ];

        return $status[$value];
    }
}
